/* Alloc for fixed size blocks           Jack Snoeyink 
 * FixedAlloc.h
 */

#ifndef FIXEDALLOC_DEFS

#define FIXEDALLOC_DEFS

#ifdef __cplusplus
extern "C" {
#endif

void *FA_Aligned_Alloc();
void *FA_Alloc();
void *_FA_new();	
void *_FA_dispose(); 

#define FA_new(freelist) /* WARNING: freelist is modified! (pass a pointer) */\
  _FA_new((void **) freelist) 
#define FA_dispose(ptr, freelist); /* WARNING: freelist modified! (pass ptr) */\
  _FA_dispose((void **)ptr, (void **)freelist); 

#ifdef __cplusplus
}
#endif

#endif

